package net.huashitong.synthetical.newSupervision.dao;

import com.sirdc.modules.core.dao.GenericQuery;
import com.sirdc.modules.core.dao.StringDao;
import net.huashitong.synthetical.newSupervision.entity.TaskBack;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: ling
 * Date: 2019/7/16
 * Time: 12:25
 * To change this template use File | Settings | File Templates.
 * Description:
 */
@Repository
public class TaskBackDao extends StringDao<TaskBack> {

    /**
     * 根据sendID查询反馈类容
     * @param id
     * @return
     */
    public List<TaskBack> getBySendId(String id) {
        GenericQuery query = createQuery("obj");
        query.append(" and sendId =:sendId").setParam("sendId", id);
        return query.listResult();
    }
}
